﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="KF_list.aspx.cs" Inherits="Web.KF_list" %>

<%@ Register Assembly="Control" Namespace="Com.Control" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>

    <script type="text/javascript" src="js/jquery.js"></script>

    
    <link href="css/Page.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../common/Js/base.js"></script>

    <link href="js/src/tip-yellowsimple/tip-yellowsimple.css" rel="stylesheet" type="text/css" />

    <script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>

    <script src="js/src/jquery.poshytip.js" type="text/javascript"></script>
<!--上下滚动新闻start-->

    <script src="js/vticker.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
	$('.news-container2').vTicker({
		"showItems":1
});
	
})
</script>
<!--上下滚动新闻end-->


    <script type="text/javascript">

        function titlemsg(id) {
            var ajax = new Ajax("xy013", "&id=" + id);
            ajax.onSuccess = function() {

                if (ajax.state.result == 0 || ajax.state.result == -1) {

                } else {

                    $('#title' + id).poshytip({
                        content: '请尽快录入erp 修改状态！', //提示消息内容
                        className: 'tip-yellowsimple',
                        showTimeout: 1,
                        alignTo: 'target',
                        alignX: 'center',
                        offsetY: 5,
                        allowTipHover: false
                    });
                }

            }
        }

    </script>


  

    <script type="text/javascript">
        function scrollNews() {
            $(document).ready(function() {
                $('#tag').eq(0).fadeOut("slow", function() {
                    $(this).clone().appendTo($(this).parent()).fadeIn("slow");
                    $(this).remove();
                });
            });
        }
        setInterval('scrollNews()', 9000);
        
        
        
    </script>

    <style type="text/css">
        .select
        {
            width: 45px;
            height: 24px;
            line-height: 24px;
            position: relative;
            text-align: center;
            cursor: pointer;
            background: url(images/selectbg.jpg) right 0px no-repeat;
            color: #fff;
        }
        .option
        {
            line-height: 24px;
            width: 45px;
            position: absolute;
            top: 24px;
            left: 0px;
            display: none;
            background: #820014;
        }
        ul
        {
            list-style: none;
            margin: 0;
            padding: 0;
        }
     
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="border: 1px solid #9abddd;" border="0" cellpadding="0" cellspacing="0"
            width="98%">
            <tr>
                <td class="TitleBar" colspan="11" align="center">
                    机会管理
                </td>
            </tr>
            <tr>
                <td class="Pager" colspan="11" style="padding-right: 30px; text-align: left;">
                    &nbsp;&nbsp; 线索来源：
                    <asp:DropDownList ID="ddlsrc" runat="server" TabIndex="6">
                    </asp:DropDownList>
                    <span style="display: none;">线索类型：</span>
                    <asp:DropDownList ID="ddltype" runat="server" TabIndex="6">
                    </asp:DropDownList>
                    机会类型：
                    <asp:DropDownList ID="ddljihui" runat="server" TabIndex="6">
                    </asp:DropDownList>
                    产品分类：
                    <asp:DropDownList ID="ddlProductKind" runat="server">
                    </asp:DropDownList>
                    &nbsp;&nbsp; 开始时间：&nbsp;&nbsp;<asp:TextBox ID="BeginDataTime" runat="server" onclick="new WdatePicker({dateFmt:'yyyy-MM-dd'});"
                        TabIndex="10" Width="85px"></asp:TextBox>
                    &nbsp;&nbsp; 结束时间：&nbsp;&nbsp;<asp:TextBox ID="EndDataTime" runat="server" onclick="new WdatePicker({dateFmt:'yyyy-MM-dd'});"
                        TabIndex="11" Width="85px"></asp:TextBox>
                    &nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td class="Pager" colspan="11" style="padding-right: 30px; text-align: left;">
                    &nbsp;&nbsp;公司名称：<asp:TextBox runat="server" ID="txtcorname" onkeydown="if(event.keyCode==13){document.getElementById('btn_ok').click(); return false;}"></asp:TextBox>
                    &nbsp;&nbsp;电&nbsp;&nbsp;话：<asp:TextBox runat="server" ID="txtphone" onkeydown="if(event.keyCode==13){document.getElementById('btn_ok').click(); return false;}"></asp:TextBox>
                    &nbsp;&nbsp;手&nbsp;&nbsp;机：<asp:TextBox runat="server" ID="txttel" onkeydown="if(event.keyCode==13){document.getElementById('btn_ok').click(); return false;}"></asp:TextBox>
                    &nbsp;&nbsp;
                    <asp:Label ID="lblName" runat="server" Text="操作人："></asp:Label>
                    &nbsp;
                    <asp:DropDownList ID="ddlDoPeper" runat="server" TabIndex="8" Width="70px">
                    </asp:DropDownList>
                    <asp:Button runat="server" ID="btn_ok" Text="查询" OnClick="btn_ok_Click" Width="200px"
                        Style="float: right;" />
                </td>
            </tr>
            <tr>
                <td style="height: 30px; padding-left: 10px; font-size: 12px" align="left" class="Pager"
                    colspan="12">
                    <span style="font-size: 12px; color: #ce0000" runat="server" id="lbMsg"></span>
                </td>
            </tr>
            <tr>
                <td style="height: 15px; padding-left: 10px; font-size: 12px; overflow:hidden;" align="left" class="Pager" colspan="12">
         <div class="news-container2" >
		<ul>
			<%=study%>
		</ul>
	</div>
                    
                </td>
            </tr>
            <tr>
                <td class="Pager" colspan="6" style="text-align: right;">
                    <cc1:MyPageBar ID="MyPageBar2" runat="server" />
                </td>
                <td class="Pager" colspan="5" style="padding-right: 10px; text-align: right;">
                    <asp:Button ID="btn_tom" runat="server" Text="昨天" OnClick="btn_tom_Click" />
                    <asp:Button ID="btn_qian" runat="server" Text="前一天" OnClick="btn_qian_Click" />
                    <asp:Button ID="btn_hou" runat="server" Text="后一天" OnClick="btn_hou_Click" />
                    <asp:Button ID="btn_cal" runat="server" OnClick="btn_cal_Click" Text="产品类别管理" />
                    <asp:Button ID="btn_look" runat="server" OnClick="btn_look_Click" Text="今日报表" />
                    <asp:Button runat="server" ID="btn_add" Text="添加机会" OnClick="btn_add_Click" />
                </td>
            </tr>
            <tr>
                <td class="MenuItem" align="center">
                    日期
                </td>
                <td class="MenuItem" align="center">
                    公司名称
                </td>
                <td class="MenuItem" align="center">
                    电话
                </td>
                <td class="MenuItem" align="center">
                    手机
                </td>
                <td class="MenuItem" align="center">
                    地区
                </td>
                <td class="MenuItem" align="center">
                    联系人
                </td>
                <td class="MenuItem" align="center">
                    产品名称
                </td>
                <td class="MenuItem" align="center">
                    线索来源
                </td>
                <td class="MenuItem" align="center">
                    机会类型
                </td>
                <td class="MenuItem" align="center">
                    录入人
                </td>
                <td class="MenuItemRight" align="center">
                    操作
                </td>
            </tr>
            <asp:Repeater ID="repeater" runat="server" OnItemCommand="repeater_ItemCommand" OnItemDataBound="repeater_ItemDataBound">
                <ItemTemplate>
                    <tr style='background-color: <%#(Container.ItemIndex%2==0)?"write":"#f5f5f5;"%>'
                        runat="server" id="row">
                        <td class="RecordItem" style="text-align: center;">
                            &nbsp;<span style="color: #000;" id="title<%#Eval("id") %>" onmouseover="titlemsg('<%#Eval("id")%>')">
                                <%#Convert.ToDateTime(Eval("I_datetime"))%></b></span>
                        </td>
                        <td class="RecordItem" style="text-align: center;">
                            &nbsp;<span style="color: #000;"><%#Eval("corName")%></b></span>
                        </td>
                        <td class="RecordItem" style="text-align: center;">
                            &nbsp;<span style="color: #000;"><%#Eval("phone")%></b></span>
                        </td>
                        <td class="RecordItem" style="text-align: center;">
                            &nbsp;<span style="color: #000;"><%#Eval("tel")%></b></span>
                        </td>
                        <td class="RecordItem" style="text-align: center;">
                            &nbsp;<span style="color: #000;"><%#Eval("I_area")%></b></span>
                        </td>
                        <td class="RecordItem" style="text-align: center;">
                            &nbsp;<span style="color: #000;"><%#Eval("linkman")%></b></span>
                        </td>
                        <td class="RecordItem" style="text-align: center;">
                            &nbsp;<span style="color: #000;"><%#Eval("kindName")%></b></span>
                        </td>
                        <td class="RecordItem" style="text-align: center;">
                            &nbsp;<span style="color: #000;"><%#Eval("srName")%></b></span>
                        </td>
                        <td class="RecordItem" style="text-align: center;">
                            &nbsp;<span style="color: #000;"><%#Eval("oppName")%></b></span>
                        </td>
                        <td class="RecordItem" style="text-align: center;">
                            &nbsp;<span style="color: #000;"><%#Eval("AdmName")%></b></span>
                        </td>
                        <td class="RecordItemRight" style="text-align: center;">
                            <a class="Link" href="KF_Add.aspx?id=<%#Eval("id")%>&backURL=<%# backURL %>">修改</a>
                            <asp:LinkButton runat="server" ID="lkb" CommandArgument='<%#Eval("id")%>' CommandName="del"
                                Text="删除" OnClientClick="return   confirm( '您确认删除该记录吗? '); "></asp:LinkButton>
                            <asp:LinkButton runat="server" ID="Iput" CommandArgument='<%#Eval("id")%>' CommandName="updata"
                                Text="入库" OnClientClick="return   confirm( '亲！您确认录入ERP了吗? '); "></asp:LinkButton>
                        </td>
                    </tr>
                    <tr style='background-color: <%#(Container.ItemIndex%2==0)?"write":"#f5f5f5;"%>'>
                        <td class="RecordItem" colspan="11" align="left">
                            &nbsp;<span style="color: blue">客户备注：</span><%#Eval("notes")%>★★★紧急★★★<%#Eval("Nickname")%>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <tr>
                <td class="Pager" colspan="11" style="padding-right: 10px; text-align: center;">
                    <cc1:MyPageBar ID="MyPageBar1" runat="server" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
